<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title>提示对话框的应用</title>
</head>
<script type="text/javascript">
function rdl_doClick(){ 
    var oMessage=document.getElementById("oMessage");
    oMessage.value=window.prompt(oMessage.value,"返回的信息");
} 
</script> 
<input id="oMessage" type="text" size="40" value="请在此输入信息">
<br><br> 
<input type="button" value=" 显示对话框 " onClick="rdl_doClick();">
<body>
</body>
</html>
